home *** CD-ROM | disk | FTP | other *** search
/ C!T ROM 3 / ct-rom iiib.zip / ct-rom iiib / WINDOWS / DIVERSEN / WINE02BX / EHELP.ELC < prev    next >
Text File  |  1993-03-28  |  7KB  |  43 lines

  1. ;;; compiled by jwz@thalidomide on Wed Dec 16 10:00:52 1992
  2. ;;; from file /u/jwz/emacs19/lisp/electric/ehelp.el
  3. ;;; emacs version 19.4 Lucid.
  4. ;;; bytecomp version 2.08; 27-aug-92.
  5. ;;; optimization is on.
  6. ;;; this file uses opcodes which do not exist in Emacs18.
  7.  
  8. (if (and (boundp 'emacs-version)
  9.      (or (and (boundp 'epoch::version) epoch::version)
  10.          (string-lessp emacs-version "19")))
  11.     (error "This file was compiled for Emacs19."))
  12.  
  13. (byte-code "└┴!ê┬├!ç" [require electric provide ehelp] 2)
  14. (defvar electric-help-map nil "\
  15. Keymap defining commands available whilst scrolling
  16. through a buffer in electric-help-mode")
  17. (byte-code "└┴┬├#ê ¼·┼ ╟╟╔W½ô╩╦╠\"┴#êTë¬i)╩═!╧!#ê╩═!╤#ê╩╥╤#ê╩╙╘#ê╩╒╓#ê╩╫╪#ê╩┘╪#ê╩┌█#ê╩▄▌#ê╩▐▌#ê╩▀α#ê)└ç" [put electric-help-undefined suppress-keymap t electric-help-map make-keymap map 0 i 128 define-key make-string 1 char-to-string meta-prefix-char copy-keymap help-char electric-help-help "?" " " scroll-up "" scroll-down "." beginning-of-buffer "<" ">" end-of-buffer "q" electric-help-exit "Q" "r" electric-help-retain] 6)
  18. (fset 'electric-help-mode #[nil "└┬─╞╚    !ç" [t buffer-read-only "Help" mode-name help major-mode (" Help:  %b") mode-line-buffer-identification use-local-map electric-help-map] 2 "\
  19. with-electric-help temporarily places its buffer in this mode
  20. (On exit from with-electric-help, the buffer is put in default-major-mode)"])
  21. (fset 'with-electric-help #[(thunk &optional buffer noerase) "└    «ü┬!├─!┼╚ïê½║─┼    \n╦    !ê╠═ !╬£Zë    ╬V½à╧    !ê╨═ ╤£─#ê╥═ ╙£\"ê╘£b*¬ç╒    !ê╓    !*ç" [get-buffer-create buffer "*Help*" one-window-p t nil two one ((byte-code "è½å┴┬ !bê├┼!ê)╟Äèqê╚ ê╔\n ¼â╠ ê) ¼ôqê╧╔!êebê½à╨┬ !ê)qê╤╥!ê╙ ëó╒=½ô╓╫┬ !┴┬ !╪┬ !`$¬â╔*╔ç" [one window-start selected-window t pop-up-windows pop-to-buffer buffer ((byte-code "└┴!ê\nqê├├┼╞Åç" [message "" buffer nil buffer-read-only (byte-code "«ü┴ ç" [default-major-mode fundamental-mode] 1) ((error))] 3)) electric-help-mode nil buffer-read-only noerase erase-buffer standard-output thunk set-buffer-modified-p shrink-window-if-larger-than-buffer run-hooks electric-help-mode-hook electric-help-command-loop two retain vector window-height window-hscroll] 6)) tem pop-up-windows pop-to-buffer window-height selected-window 0 shrink-window set-window-start 1 set-window-hscroll 2 3 replace-buffer-in-windows bury-buffer] 5 "\
  22. Arguments are THUNK &optional BUFFER NOERASE.
  23. BUFFER defaults to \"*Help*\"
  24. THUNK is a function of no arguments which is called to initialise
  25.  the contents of BUFFER.  BUFFER will be erased before THUNK is called unless
  26.  NOERASE is non-nil.  THUNK will be called with  standard-output  bound to
  27.  the buffer specified by BUFFER
  28.  
  29. After THUNK has been called, this function \"electrically\" pops up a window
  30. in which BUFFER is displayed and allows the user to scroll through that buffer
  31. in electric-help-mode.
  32. When the user exits (with electric-help-exit, or otherwise) the help
  33. buffer's window disappears (ie we use save-window-excursion)
  34. BUFFER is put into default-major-mode (or fundamental-mode) when we exit"])
  35. (fset 'electric-help-command-loop #[nil "└┴ìç" [exit (byte-code "└d!½Ö┴┬!ê├─┼ !ë!╟=½ê╚╔╩╦\"ê╚ëëë╠═!╬=¡ô╠╧!╨=¡î╠╤!╥=¡à╠╙!╥=┘╩┌╦#-ç" [pos-visible-in-window-p message "<<< Press Space to bury the help buffer >>>" event-to-character next-command-event allocate-event unread-command-event 32 nil throw exit t key-binding " " scroll-up "" scroll-down "Q" electric-help-exit "q" standard neither both down up Electric-command-loop #[nil "└e!└d!ë½ô    ½É ½â─¬─«┴╞╟!ë¬║\n½Æ ½â╚¬▒    «¡╞╩!ë    ¬Ñ    ½Æ ½â╦¬£ «ÿ╞═!ë ¬É ½â╬¬è«å╞╨!ë*ç" [pos-visible-in-window-p max min standard "Press Q to exit " neither substitute-command-keys "Press \\[scroll-up] to exit " "Press SPC to scroll, Q to exit " up "Press \\[scroll-up] to scroll; \\[electric-help-exit] to exit " "Press DEL to scroll back, Q to exit " down "Press \\[scroll-down] to scroll back, \\[scroll-up] to exit " "Press SPC to scroll, DEL to scroll back, Q to exit " both "Press \\[scroll-up] to scroll, \\[scroll-down] to scroll back, \\[electric-help-exit] to exit "] 4]] 6)] 2])
  36. (fset 'electric-help-exit #[nil "└┴┬\"ç" [throw exit t] 3 "\
  37. >>>Doc" nil])
  38. (fset 'electric-help-retain #[nil "└┴┬\"ç" [throw exit (retain)] 3 "\
  39. Exit electric-help, retaining the current window/buffer conifiguration.
  40. (The *Help* buffer will not be selected, but \\[switch-to-buffer-other-window] RET
  41. will select it.)" nil])
  42. (byte-code "└┴Mê┬├Mê─┼Mê╞╟Mê╚╔Mê╩╦Mê╠═Mê╬╧Mê╨╤Mê╥╙Mê╘╒Mê╓╫!¼â╪¼┴┘!▄▌╞#ê▄▐╚#ê▄▀╩#ê▄α╠#ê▄ß╬#ê▄Γ╨#ê▄π╥#êΣMê)╪ç" [electric-help-undefined #[nil "└┴┬├─ ┼#╞╟!╚=½â╟¬â╔╩!#ç" [error "%s is undefined -- Press %s to exit" mapconcat single-key-description this-command-keys " " key-binding "Q" electric-help-exit substitute-command-keys "\\[electric-help-exit]"] 6 nil nil] electric-help-help #[nil "└┴!┬=½ö└├!─=½ì└┼!╞=½å╟╚!ê¬ï╟╔!ê╟╩╦╠!\"ê═╬!ç" [key-binding "Q" electric-help-exit " " scroll-up "" scroll-down message "SPC scrolls forward, DEL scrolls back, Q exits and burys help buffer" "Help..." "%s" substitute-command-keys "\\[scroll-up] scrolls forward, \\[scroll-down] scrolls back, \\[electric-help-exit] exits." sit-for 2] 4 nil nil] electric-helpify #[(fun) "└┬ï¡à├─    ┼#)ç" ["*Help*" name ((byte-code "└K┬ !┼ ! ½ç╟ !¼é╚╔Ä╩╦╠═!!\"ê ½ëè qê╧╨!ê)└╤Mê╤╙!ê)┬ !¡ù╟┬ !!¡É ?«î ┬ !=?«ä┼ !?,ç" [print-help-return-message p get-buffer name b buffer-modified-p m get-buffer-window nil ((byte-code "└    Mê\n½Ä├\n!½ëè\nqê─!ê)└ç" [print-help-return-message p b buffer-name set-buffer-modified-p m] 2)) message "%s..." capitalize symbol-name fun set-buffer-modified-p t ignore temp-buffer-show-function call-interactively] 5)) with-electric-help ignore t] 4] electric-describe-key #[nil "└┴!ç" [electric-helpify describe-key] 2 nil nil] electric-describe-mode #[nil "└┴!ç" [electric-helpify describe-mode] 2 nil nil] electric-view-lossage #[nil "└┴!ç" [electric-helpify view-lossage] 2 nil nil] electric-describe-function #[nil "└┴!ç" [electric-helpify describe-function] 2 nil nil] electric-describe-variable #[nil "└┴!ç" [electric-helpify describe-variable] 2 nil nil] electric-describe-bindings #[nil "└┴!ç" [electric-helpify describe-bindings] 2 nil nil] electric-describe-syntax #[nil "└┴!ç" [electric-helpify describe-syntax] 2 nil nil] electric-command-apropos #[nil "└┴!ç" [electric-helpify command-apropos] 2 nil nil] boundp ehelp-map nil copy-keymap help-map map substitute-key-definition describe-key describe-mode view-lossage describe-function describe-variable describe-bindings describe-syntax ehelp-command] 4)
  43.